package com.jx.driving.protocol.terminal.codec;

import java.util.HashMap;
import java.util.Map;

import com.jx.driving.protocol.terminal.channel.Channel;

public class MockChannel implements Channel {

	Map<Object, Object> attrs = new HashMap<>();

	@Override
	public void tell(Object msg) {

	}

	@Override
	public void tellAndSync(Object msg) {

	}

	@Override
	public <T> void attr(String key, T object) {
		attrs.put(key, object);

	}

	@Override
	public <T> T attr(String key) {
		return (T) attrs.get(key);
	}

	@Override
	public void close() {

	}

	@Override
	public <T> T orginal() {
		// TODO Auto-generated method stub
		return null;
	}

}
